import request from '@/utils/request'

// 查询商品标签列表
export function listBiaoqian(query) {
  return request({
    url: '/biaoqian/biaoqian/list',
    method: 'get',
    params: query
  })
}

// 查询商品标签详细
export function getBiaoqian(tagId) {
  return request({
    url: '/biaoqian/biaoqian/' + tagId,
    method: 'get'
  })
}

// 新增商品标签
export function addBiaoqian(data) {
  return request({
    url: '/biaoqian/biaoqian',
    method: 'post',
    data: data
  })
}

// 修改商品标签
export function updateBiaoqian(data) {
  return request({
    url: '/biaoqian/biaoqian',
    method: 'put',
    data: data
  })
}

// 删除商品标签
export function delBiaoqian(tagId) {
  return request({
    url: '/biaoqian/biaoqian/' + tagId,
    method: 'delete'
  })
}
